import { App } from 'vue';
import Searcher from './common-form/Searcher.vue';
import Saver from './common-form/Saver.vue';
import BaseTable from './common-table/BaseTable.vue';
import PageTools from './PageTools.vue';
import Loger from './Loger.vue';
import Former from './common-form/Former.vue';
import Chart from './common-chart/Chart.vue';

import MonacoEditor from './monaco-editor.vue';

const globalComp = {
  install(Vue: App) {
    Vue.component('Searcher', Searcher);
    Vue.component('PageTools', PageTools);
    Vue.component('BaseTable', BaseTable);
    Vue.component('Saver', Saver);
    Vue.component('Chart', Chart);
    Vue.component('Loger', Loger);
    Vue.component('Former', Former);
    Vue.component('MonacoEditor', MonacoEditor);
  },
};

export default globalComp;
